class Stu{
    public name:string="clearlove";
    private _age:number=27;
    public show():void{
        console.log(this._age);
        this.print();
    }
    private print(){

    }
    get age(){
        return this._age;
    }
    set age(nv){
        this._age=nv;
    }
}
var s1:Stu=new Stu();
console.log(s1.name);
// console.log(s1._age);
s1.show();
// s1.print();